
'''
class A(object):
    def __init__(self):
        self.name = 'ouyang'
        self.liss = []
    def say(self,name):
        print('%s is calling' %name)

    def __call__(self, *args, **kwargs):
        print("running call",args,kwargs)
a = A()
a.say('ouyang')
a(1,2,3,age=123)
A()(1,2,3,age=123)
print(A.__dict__)#打印类里的所有属性，不包括实例属性
print(a.__dict__)#打印所有实例属性，不包括类属性
'''

class A(object):
    def __init__(self,name,liss):
        self.name = 'ouyang'
        self.liss = liss
    def  __str__(self):
        return "<obj.%s>"  %self.name
a = A('这里放什么都不会传给name',[1,2,3,4])
print(a.__dict__)
print(a)


